import request from '@/utils/request'

// 查询整改上报列表
export function listRectificationReport(query) {
  return request({
    url: '/check/rectificationReport/list',
    method: 'get',
    params: query
  })
}

// 查询整改上报详细
export function getRectificationReport(rectificationReportId) {
  return request({
    url: '/check/rectificationReport/' + rectificationReportId,
    method: 'get'
  })
}

// 新增整改上报
export function addRectificationReport(data) {
  return request({
    url: '/check/rectificationReport',
    method: 'post',
    data: data
  })
}

// 修改整改上报
export function updateRectificationReport(data) {
  return request({
    url: '/check/rectificationReport',
    method: 'put',
    data: data
  })
}

// 删除整改上报
export function delRectificationReport(rectificationReportId) {
  return request({
    url: '/check/rectificationReport/' + rectificationReportId,
    method: 'delete'
  })
}
